From: Marina Zhurakhinskaya Date: Sun, 19 Aug 2012 21:32:37 +0000 (-0400) Subject: messageTray: be sure to remove destroyed notifications from the notification stack X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6126 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4a214d823830561f2771739a0c72b5b017bd305b;p=gnome-shell.git messageTray: be sure to remove destroyed notifications from the notification stack This allows us to correctly identify when the notification stack is empty. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 5b0403a4c..5958a873d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1285,6 +1285,8 @@ const SummaryItem = new Lang.Class({ notification.disconnect(stackedNotification.notificationDoneDisplayingId); notification.disconnect(stackedNotification.notificationDestroyedId); this._stackedNotifications.splice(i, 1); + if (notification.actor.get_parent() == this.notificationStack) + this.notificationStack.remove_actor(notification.actor); this._contentUpdated(); break; }